#include once "mud-gui/ui.bi"
#include once "mud-gui/gclass.bi"
#include once "mud-gui/util.bi"
#include once "mud-gui/event.bi"
#include once "mud-gui/widgets/basewidget.bi"

#inclib "mudgui-stdwidgets"

namespace ui

enum DialogRet
        MG_CANCEL = -2
        MG_OK = -1
        MG_NOCLICK = 0
end enum


gclass(Dialog)

        declare constructor ( byval parent as BaseWidget ptr = 0, byval width_x as integer = 0, byval height_y as integer = 0 )
        
        declare sub init()
        declare sub addButton( byval btn as BaseWidget ptr, byval btn_type as DialogRet )
        declare function run () as DialogRet  
        m_status as DialogRet
        private:
        old_mw as BaseWidget ptr
        
        
endgclass

end namespace

